package com.wry.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class AppAop {

    @Pointcut("execution(void com.wry.Service.UserService.aopServe())")
    private void pt() {
    }

    @Before("pt()")
    public void method() {
        System.out.println("调用AOP" + System.currentTimeMillis());
    }
}
